package com.etc.service;

import java.util.List;

import com.etc.entity.Medicine;
import com.github.pagehelper.PageInfo;

public interface MedicineService {

	//查询所有药品
	public List<Medicine> selectMedicineByPage(int pageStar,int pageSize);
	
	//添加药品
	public boolean insertMedicine(Medicine medicine);
	
	//修改药品信息
	public boolean updMedicine(Medicine medicine);
	
	//删除药品信息
	public boolean delMedicine(Integer medicineid);
	
	
	//根据id查药品
	public Medicine selectMedicineById(Integer medicineid) ;
	
	public int selCountMedicine();
	
	/**
     * 查询所有药品类型
     * @return
     */
    List<Medicine> selMedicineType();
    /**
     * 根据药品类型查询所有药品
     * @return
     */
    List<Medicine> selMedicineByType(String medicineType);
    /**
     * 根据药品名称查询药品Id
     * @param medicineName
     * @return
     */
    int selMedicineIdByName(String medicineName);
}
